package com.zf.museum.repository;

import com.zf.museum.model.MultiChoices;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MultiChoicesRepository extends JpaRepository<MultiChoices, Long>{

    @Query("select id from MultiChoices order by id asc " )
    Long[] getIds();

    List<MultiChoices> getTop6ByIdIsNotIn(List<Long> ids);

    List<MultiChoices> getMultiChoicesByIdNotIn(List<Long> ids);

}
